home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Q-R
/
Recognize.94.cpt
/
Recognize .94
/
card_13935.txt
< prev
next >
Wrap
Text File
|
1988-11-13
|
12KB
|
596 lines
-- card: 13935 from stack: in.94
-- bmap block id: 15314
-- flags: 0000
-- background id: 2792
-- name: NewTerminal
----- HyperTalk script -----
on opencard
global already,exitcmd
put "Return" into exitcmd
put false into already
end opencard
on closecard
end closecard
on docardsearch
global already
if charsavailable() <> 0 then idle
if bkgnd field infield contains "RETURN to exit" then
if already <> true then
put true into already
donedisplay
else exit docardsearch
end if
end docardsearch
on donedisplay
global cols,clearscrn
repeat until line 1 of bkgnd field infield contains "# of columns:"
delete line 1 of bkgnd field infield
end repeat
unhilite
newbuttons
put last word of line 1 of bkgnd field infield into cols
put cols into card field colnum
put last word of line 8 of bkgnd field infield into term
put the number of chars in term into theno
put char 1 to theno of term into term
if term is "VT100" then set the icon of card button "Term" to 28260
else set the icon of card button "Term" to 28994
put last word of line 9 of bkgnd field infield into clearscrn
put clearscrn into card field clearscreen
end donedisplay
on setfields
repeat with i = 1 to 9
set the autotab of card field i to true
set the locktext of card field i to true
end repeat
end setfields
on unhilite
repeat with i=1 to the number of card buttons
set the hilite of card button i to false
end repeat
end unhilite
on newdo
repeat with i = 16 to 25
show card button i
select card button i
domenu "Clear Button"
end repeat
end newdo
on NewButtons
put 2 into t
repeat with i = 2 to 7
put last word of line i of bkgnd field infield into theword
if theword Contains "Yes" then
set the icon of card button i to 28260
else
set the icon of card button i to 28994
end if
add 1 to t
end repeat
end newbuttons
on changicon
repeat with i = 2 to the number of buttons
set the icon of card button i to 28260
end repeat
end changicon
-- part 27 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=6 top=64 right=79 bottom=124
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: columns
-- part 28 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=193 top=60 right=75 bottom=260
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Linefeeds
-- part 29 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=341 top=61 right=76 bottom=471
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Backspace
-- part 30 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=5 top=139 right=154 bottom=125
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: Mode
-- part 31 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=194 top=140 right=154 bottom=261
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: hotmenus
-- part 32 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=365 top=140 right=155 bottom=459
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: nobother
-- part 33 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=5 top=211 right=227 bottom=127
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: lognotify
-- part 34 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=187 top=209 right=226 bottom=276
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: terminal
-- part 35 (field)
-- low flags: 03
-- high flags: 0000
-- rect: left=355 top=210 right=226 bottom=489
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name: screen
-- part 36 (field)
-- low flags: 02
-- high flags: 4002
-- rect: left=33 top=82 right=100 bottom=82
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name: colnum
----- HyperTalk script -----
on openfield
global thecol
put target into thecol
end openfield
on closefield
global thecol
if target <> thecol then
sendsport 1,false,1
sendsport 1,false, target
sendsport 1,false,return
end if
end closefield
-- part 37 (field)
-- low flags: 02
-- high flags: 4002
-- rect: left=396 top=227 right=245 bottom=445
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name: clearscreen
----- HyperTalk script -----
on openfield
global thechar
put target into thechar
end openfield
on closefield
global thechar
if target <> thechar then
sendsport 1,false,9
sendsport 1,false, target
sendsport 1,false,return
end if
end closefield
-- part 53 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=156 top=303 right=337 bottom=369
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: R E T U R N
----- HyperTalk script -----
on mouseUp
sendsport return
go to card mainmenu
end mouseUp
-- part 54 (field)
-- low flags: 81
-- high flags: 0007
-- rect: left=14 top=40 right=257 bottom=491
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name: Bulletins
-- part 72 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=209 top=83 right=117 bottom=245
-- title width / last selected line: 0
-- icon id / first selected line: 28994 / 28994
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Term 2
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 2 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport 1,false, myno
sendsport 1,false, "n"
set the icon of me to 28994
else
sendsport 1,false, myno
sendsport 1,false, "y"
set the icon of me to 28260
end if
end mouseUp
-- part 73 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=394 top=83 right=117 bottom=430
-- title width / last selected line: 0
-- icon id / first selected line: 28994 / 28994
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport 1,false, myno
sendsport 1,false, "n"
set the icon of me to 28994
else
sendsport 1,false, myno
sendsport 1,false, "y"
set the icon of me to 28260
end if
end mouseUp
-- part 74 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=43 top=165 right=199 bottom=79
-- title width / last selected line: 0
-- icon id / first selected line: 28260 / 28260
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport myno
sendsport "n"
set the icon of me to 28994
else
sendsport myno
sendsport "y"
set the icon of me to 28260
end if
end mouseUp
-- part 75 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=208 top=165 right=199 bottom=244
-- title width / last selected line: 0
-- icon id / first selected line: 28260 / 28260
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport myno
sendsport "n"
set the icon of me to 28994
else
sendsport myno
sendsport "y"
set the icon of me to 28260
end if
end mouseUp
-- part 76 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=399 top=165 right=199 bottom=435
-- title width / last selected line: 0
-- icon id / first selected line: 28994 / 28994
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport 1,false, myno
sendsport 1,false, "n"
set the icon of me to 28994
else
sendsport 1,false, myno
sendsport 1,false, "y"
set the icon of me to 28260
end if
end mouseUp
-- part 77 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=210 top=244 right=278 bottom=246
-- title width / last selected line: 0
-- icon id / first selected line: 28994 / 28994
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport 1,false, myno
sendsport 1,false, "n"
set the icon of me to 28994
else
sendsport 1,false, myno
sendsport 1,false, "y"
set the icon of me to 28260
end if
end mouseUp
-- part 78 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=42 top=243 right=276 bottom=81
-- title width / last selected line: 0
-- icon id / first selected line: 28994 / 28994
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Term
----- HyperTalk script -----
on mouseUp
put the short name of me into temp
put word 4 of temp into myno
get the icon of me
put it into mine
if it is 28260 then
sendsport 1,false, myno
sendsport 1,false, "n"
set the icon of me to 28994
else
sendsport 1,false, myno
sendsport 1,false, "y"
set the icon of me to 28260
end if
end mouseUp
-- part contents for background part 1
----- text -----
Terminal Setup
-- part contents for card part 27
----- text -----
Number of Columns
-- part contents for card part 28
----- text -----
Line Feeds
-- part contents for card part 29
----- text -----
Destructive Backspace
-- part contents for card part 30
----- text -----
User Beginner Mode
-- part contents for card part 31
----- text -----
Hot Menus
-- part contents for card part 32
----- text -----
No Bother Mode
-- part contents for card part 33
----- text -----
Logon/Logoff Notify
-- part contents for card part 34
----- text -----
Terminal Type
-- part contents for card part 35
----- text -----
Clear Screen Character
-- part contents for card part 36
----- text -----
80
-- part contents for card part 37
----- text -----
0
-- part contents for background part 3
----- text -----
1) # of columns: 80
2) Line feeds: No
3) Destructive Backspace: No
4) Use Beginner Mode: Yes
5) Hot Menus: Yes
6) No Bother Mode: No
7) Logon/Logoff Notify: No
8) Terminal type: TTY
9) Clear screen character: 0
T) Test my connection
Type * to see display
Type RETURN to exit
Config>